package com.atguigu.spring6.aop.example;

/**
 * @author: Michael
 * @date: 2025/5/15
 * @desc:
 */
public class TestCal {

    public static void main(String[] args) {
        // 创建代理对象（动态）
        ProxyFactory proxyFactory = new ProxyFactory(new CalculatorImpl());
        Calculator proxy = (Calculator) proxyFactory.getProxy();
        proxy.add(1, 2);
    }
}
